package cn.edu.scau.cmi.xuxingao.composite.safe;

public class SafeLeaf extends SafeComponent {
	private String name;
	
	public SafeLeaf(String name){
		this.name=name;
	};
	public void setName(String name) {
		this.name = name;
	}
	
	public String getName() {
		return name;
	}
	
	public String intro(int i) {
		String blank="";
		for(int j=0;j<i;j++) {
			blank+="       ";
		}
		return blank+name;
	}
}
